package com.ycc.dao;

import com.ycc.model.entity.OnionLog;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface OnionLogRepository extends JpaRepository<OnionLog, Long> {

    List<OnionLog> findByUserId(Integer userId);

    List<OnionLog> findByUserIdOrderByCreateTimeDesc(Integer userId);
}